{template "common","header"}
<!-- kindeditor -->
<link rel="stylesheet" href="{JS_PATH}kindeditor/themes/default/default.css" />
<script language="javascript" charset="utf-8" src="{JS_PATH}kindeditor/kindeditor-min.js"></script>
<script language="javascript" charset="utf-8" src="{JS_PATH}kindeditor/lang/zh_CN.js"></script>
<script language="javascript">
var job_editor;
KindEditor.ready(function(K) {
	job_editor = K.create('textarea[name="job_desc"]', {
	resizeType : 1,
	allowPreviewEmoticons : false,
	allowImageUpload : false,
	items : [
		'source', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'underline',
		 '|', 'justifyleft', 'justifycenter', 'justifyright']
	});
});
</script>
<!-- //kindeditor -->
<script type="text/javascript" src="{JS_PATH}hchhr.js" charset="UTF-8"></script>
<link href="{CSS_PATH}hchhr.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}font-awesome.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}datepicker/WdatePicker.js"></script>
<script language="JavaScript">
    $(document).ready(function(){
        var first_option = "<option value=''>=请选择=</option>";
        //获取职位分类
        $("select[name='position']").change(function(){
            $("select[name='position2']").html(first_option);
            getSubPosition($(this).val());
        });
        //获取行业分类
        $("select[name='industry']").change(function(){
            $("select[name='industry2']").html(first_option);
            getSubIndustry($(this).val());
        });
        //获取省
        $("select[name='province']").change(function(){
            $("select[name='city']").html(first_option);
            getCity($(this).val());
        });
        getSubPosition('{$item[position_no]}','{$item[position2_no]}');
        getSubIndustry('{$item[industry_no]}','{$item[industry2_no]}');
        getCity('{$item[province_no]}','{$item[city_no]}');
    });
</script>


<div class="wrap" id="wrap">
    <div class="bullet">
        <div class="bullet_title">| <label>华创俱乐部 HCCLUB</label></div>
        <div class="bullet_menu">
            <a href="/">首页</a>>
            人才对接>
            招聘模块
        </div>
    </div>
    <hr>
    <div class="job_publish">
        <h1>{$column_name}</h1>
        <form name="addform" action="/index.php?m=hchhr&c=position&a=save" method="post" onsubmit="return checkPosition(this)">
            <dl>
              <input type="hidden" name="jobid" value="{$jobid}" />
              <input type="hidden" name="position_name" value="" />
              <input type="hidden" name="position2_name" value="" />
              <input type="hidden" name="industry_name" value="" />
              <input type="hidden" name="industry2_name" value="" />
              <input type="hidden" name="province_name" value="" />
              <input type="hidden" name="city_name" value="" />

                <dt>职位名称：</dt>
                <dd>&nbsp;<input name="job_name" type="text" size="50" maxlength="50" value="{$item[job_name]}" style="width:362px;" /> <span class="must">*</span></dd>
                <dt>职位类别：</dt><dd>&nbsp;<select name="position" style="width:177px;">
                <option value="">=请选择=</option>
                {loop $position_list $r}
                <option value="{$r[position_no]}" {if $r[position_no]==$item[position_no]}selected{/if}>{$r[position_name]}</option>
                {/loop}
            </select>&nbsp;&nbsp;&nbsp;&nbsp;<select name="position2" style="width:177px;">
                <option value="">=请选择=</option>
            </select>
                <span class="must">*</span></dd>
                <dt>所属行业：</dt><dd>&nbsp;<select name="industry" style="width:177px;">
                <option value="">=请选择=</option>
                {loop $industry_list $r}
                <option value="{$r[industry_no]}" {if $r[industry_no]==$item[industry_no]}selected{/if}>{$r[industry_name]}</option>
                {/loop}
            </select>&nbsp;&nbsp;&nbsp;&nbsp;<select name="industry2" style="width:177px;">
                <option value="">=请选择=</option>
            </select>
                <span class="must">*</span></dd>
                <dt>工作地点：</dt><dd>&nbsp;<select name="province" style="width:177px;">
                <option value="">=请选择=</option>
                {loop $province_list $r}
                <option value="{$r[area_no]}" {if $r[area_no]==$item[province_no]}selected{/if}>{$r[area_name]}</option>
                {/loop}
            </select>&nbsp;&nbsp;&nbsp;&nbsp;<select name="city" style="width:177px;">
                <option value="">=请选择=</option>
            </select>
                <span class="must">*</span></dd>
                <dt>职位月薪：</dt><dd>&nbsp;<select name="job_money" style="width:177px;">
                <option value="">=请选择=</option>
                <option value="0-1" {if $item[salary]=='0-1'}selected{/if}>面议</option>
                <option value="1-1000" {if $item[salary]=='1-1000'}selected{/if}>1000元以下</option>
                <option value="1000-2000" {if $item[salary]=='1000-2000'}selected{/if}>1000-2000元</option>
                <option value="2000-4000" {if $item[salary]=='2000-4000'}selected{/if}>2000-4000元</option>
                <option value="4000-6000" {if $item[salary]=='4000-6000'}selected{/if}>4000-6000元</option>
                <option value="6000-8000" {if $item[salary]=='6000-8000'}selected{/if}>6000-8000元</option>
                <option value="8000-10000" {if $item[salary]=='8000-10000'}selected{/if}>8000-10000元</option>
                <option value="10000-15000" {if $item[salary]=='10000-15000'}selected{/if}>10000-15000元</option>
                <option value="15000-20000" {if $item[salary]=='15000-20000'}selected{/if}>15000-20000元</option>
                <option value="20000-30000" {if $item[salary]=='20000-30000'}selected{/if}>20000-30000元</option>
                <option value="30000-50000" {if $item[salary]=='30000-50000'}selected{/if}>30000-50000元</option>
                <option value="50000-1000000" {if $item[salary]=='50000-1000000'}selected{/if}>50000元以上</option>
            </select>
                  <span class="must">*</span></dd>
                <dt>工作性质：</dt><dd>&nbsp;<select name="job_nature" style="width:177px;">
                <option value="">=请选择=</option>
                <option value="全职" {if $item[job_type]=='全职'}selected{/if}>全职</option>
                <option value="兼职" {if $item[job_type]=='兼职'}selected{/if}>兼职</option>
                <option value="实习" {if $item[job_type]=='实习'}selected{/if}>实习</option>
            </select>
                  <span class="must">*</span></dd>
                <dt>职位描述：</dt><dd class="mult_line">&nbsp;<textarea name="job_desc" cols="70" rows="20">{$item[job_desc]}</textarea></dd>

                <dt>工作年限：</dt><dd>&nbsp;<select name="job_age" style="width:177px;">
                <option value="">=不限=</option>
                {loop $work_years_list $r}
                <option value="{$r}" {if $r==$item[work_years]}selected{/if}>{$r}年及以上</option>
                {/loop}
            </select></dd>
                <dt>学历要求：</dt><dd>&nbsp;<select name="job_edu" style="width:177px;">
                <option value="">=不限=</option>
                <option value="1" {if $item[education]==1}selected{/if}>高中及以下</option>
                <option value="2" {if $item[education]==2}selected{/if}>中专</option>
                <option value="3" {if $item[education]==3}selected{/if}>大专</option>
                <option value="4" {if $item[education]==4}selected{/if}>本科</option>
                <option value="5" {if $item[education]==5}selected{/if}>硕士</option>
                <option value="6" {if $item[education]==6}selected{/if}>博士</option>
            </select>
                </dd>
                <dt>招聘人数：</dt><dd>&nbsp;<input name="job_num" type="text" size="50" maxlength="5" value="{$item[number]}" onkeyup="value=value.replace(/[^\d]/g,'') "onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" style="width:362px;"/>
                  <span class="must">*</span></dd>
                <dt>职位亮点标签：</dt><dd>&nbsp;<input name="job_welfare" type="text" size="50" maxlength="50" value="{$item[tag]}" style="width:362px;"/>&nbsp;&nbsp;&nbsp;&nbsp;<span>多个标签时，请用逗号隔开，如：五险一金，年底双薪</span></dd>
                <dt>发布截止日期：</dt><dd>&nbsp;<input name="job_endtime" type="text" size="50" maxlength="50" value="{$item[end_time]}" class="Wdate" style="width:336px; cursor: pointer;" onclick="selectdate()" readonly />
                  <span class="must">*</span></dd>
                <dt>招聘联系人：</dt><dd>&nbsp;<input name="job_linkman" type="text" size="50" maxlength="50" value="{$item[link_man]}" style="width:362px;"/>
                  <span class="must">*</span></dd> 
                <dt>联系电话：</dt><dd>&nbsp;<input name="job_tel" type="text" size="50" maxlength="50" value="{$item[link_tel]}" style="width:362px;"/>
                  <span class="must">*</span></dd>
                <dt>邮箱地址：</dt><dd>&nbsp;<input name="job_email" type="text" size="50" maxlength="50" value="{$item[link_mail]}" style="width:362px;"/></dd> 

            </dl>
          <div class="publish"><input class="btn_submit" name="btn_submit" type="submit" value="提 交" /></div>
        </form>
    </div>
</div>

{template "common","footer"}